<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- Latest compiled and minified CSS & JS -->
    <link rel="stylesheet" media="screen" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.js"></script>
    <link href="https://cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">
</head>

<body>
<div id="hd">
    <button @click="type=!type">切换</button>
    <transition name="hd" enter-active-class="animated bounceInLeft" leave-active-class="animated bounceOutRight">
        <h1 v-if="type">houdunwang.com</h1>
    </transition>
</div>
<script>
    var app=new Vue({
        el:'#hd',
        data:{
            type:false
        }
    })
</script>
</body>
</html>